package com.cnswhy.cloud.server.core.service.impl;


import com.cnswhy.cloud.server.core.dao.IotChargingLineTransOrderMapper;
import com.cnswhy.cloud.server.core.entity.IotChargingLineTransOrder;
import com.cnswhy.cloud.server.core.service.IotChargingLineTransOrderService;
import com.cnswhy.cloud.common.core.base.service.SuperServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 业务实现类
 * 
 * </p>
 *
 * @author cnswhy
 * @date 2021-03-08
 */
@Slf4j
@Service

public class IotChargingLineTransOrderServiceImpl extends SuperServiceImpl<IotChargingLineTransOrderMapper, IotChargingLineTransOrder> implements IotChargingLineTransOrderService {
    @Override
    public Long getSuccessCount(String terminalId) {
        return baseMapper.getSuccessCount(terminalId);
    }

    @Override
    public Long getSuccessTransAmt(String terminalId) {
        return baseMapper.getSuccessTransAmt(terminalId);
    }

    @Override
    public Long getTotalSplitAmt(String terminalId,Long customerId) {
        return baseMapper.getTotalSplitAmt(terminalId,customerId);
    }

    @Override
    public Long getTotalSplitAmtAndMerchantId(Long merchantId, Long customerId) {
        return baseMapper.getTotalSplitAmtAndMerchantId(merchantId,customerId);
    }
}
